package com.developpez.Android.Agde;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Viewtwo extends Activity{
	private Button enregistrer ;
	private Button miseveille ;
	private Button deconnecter ;

	public void onCreate(Bundle savedInstanceState) {
		//we create the view
		super.onCreate(savedInstanceState);
		//we put the components in the view
		setContentView(R.layout.viewtwo);
		
        enregistrer = (Button) findViewById(R.id.btnSave);
		
		enregistrer.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
			
				Intent intent = new Intent(Viewtwo.this,Viewthree.class);
	            startActivity(intent);
								
			}
		});
		
		
		 miseveille = (Button) findViewById(R.id.btnMiseVeille);
			
		miseveille.setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
				
					Intent intent = new Intent(Viewtwo.this,Viewfour.class);
		            startActivity(intent);
									
				}
			});
		
          deconnecter = (Button) findViewById(R.id.btnDisconnect);
			
		deconnecter.setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
				
					Intent intent = new Intent(Viewtwo.this,Agde.class);
		            startActivity(intent);
									
				}
			});
	}
}


